//
//  HYProductModel.m
//  Fanmugua
//
//  Created by xiaomk on 2019/12/7.
//  Copyright © 2019 taolang. All rights reserved.
//

#import "HYProductModel.h"

static NSString * const kHY_coinName        = @"书币";

@implementation HYProductModel
- (NSString *)cg_detail{
//    if (self.iosname){
//        return self.iosname;
//    }
    if ([self.itemid isEqualToString:@"com.huaya-jisu.app.item.1month"]) {
        return @"月卡VIP";
    }else if ([self.itemid isEqualToString:@"com.huaya-jisu.app.item.1season"]){
        return @"季卡VIP";
    }else if ([self.itemid isEqualToString:@"com.huaya-jisu.app.item.1year"]) {
        return @"年卡VIP";
    }else{
        return [NSString stringWithFormat:@"%@%@",self.coinnum, kHY_coinName];
    }
}
- (NSString *)cg_itemId{
    if (!_cg_itemId) {
        if (self.itemid) {
            _cg_itemId = self.itemid;
        }
        if (self.appleSubProductId) {
            _cg_itemId = self.appleSubProductId;
        }
    }
    return _cg_itemId;
}
@end

@implementation CGOrderModel
@end
